Color 11 ' ansi color Print "Where Mlvl is the monster level, Dlvl is the dungeon level, Mhp is the monster" Print "hit points, Exp is the monsters experience, Armor is your combined armor plus," Print "Weapon is your weapon plus, Strength is your strength, Level is your expertise" Print "level, Hits is the number of points damage your can do to a monster, and Mhits" Print "is the number of points damage a monster can do to you."
Color 15 ' ansi color Locate 13,1,0 ' position cursor Print "You now an armor plus of"; Locate 14,1,0 ' position cursor Print "You have a weapon plus of";
Locate 15,1,0 ' position cursor
Print "Gold needed to reach the next level:";
Locate 16,1,0 ' position cursor
Print "Experience needed to reach the next level:"; Locate 17,1,0 ' position cursor Print "On this dungeon level, monsters have the following statistics:"; Locate 19,10,0 ' position cursor Color 14 ' ansi color
Print "Level Hit points Experience Combat hits"; Locate 20,1,0 ' position cursor Print "min."; Locate 21,1,0 ' position cursor Print "max."; Locate 22,1,0 ' position cursor Print "avg."; Return ' exit routine
' randomize random coordinate increments
Get.Random.Direction:
Select Case Rnd ' random value for selecting nearby x-coordinate cell
Case Is<=.3
xo=-1 ' cell to the north
Case Is>=.7
xo=1 ' cell to the south
Case Else
xo=0 ' neither
End Select
Select Case Rnd ' random value for selecting nearby y-coordinate cell
Case Is<=.3
yo=-1 ' cell to the west
Case Is>=.7
yo=1 ' cell to the east
Case Else
yo=0 ' neither
End Select
Coor.Direction=0
If cxco+xo>1 Then ' x-coordinates boundary
If cxco+xo<22 Then ' x-coordinate boundary
If cyco+yo>1 Then ' y-coordinate boundary
If cyco+yo<76 Then ' y-coordinate boundary
If Not (xo=0 And yo=0) Then ' not original xy-coordinate